﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FTradeReceivablesView.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.FTradeModel.FTradeReceivablesView" %>

<div class="pageContent">
	<form method="post" class="pageForm required-validate" >
		<div class="pageFormContent" layoutH="56">
                <h2 style=" padding:0px 0px 5px 6px; border-bottom:1px solid #B8D0D6;">基本信息</h2>
			        <p>
				    <label>合 同 号：</label>
				    <input name="HeTongHao" type="text" class="required" value="<%=obj.HeTongHao %>" readonly />
			        </p>
			        <p>
				        <label>销售时间：</label>
				        <input name="XiaoShouShiJian" class="required date" type="text" value="<%=obj.XiaoShouShiJian.ToString("yyyy-MM-dd") %>"  alt="请输入销售时间"  readonly/>
			        </p>
			        <p>
				        <label>经 销 商：</label>
                        <input name="JingXiaoShang" type="text" value="<%=obj.JingXiaoShang %>"  class="required textInput autocomplete"  readonly autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getagentlist" swidth="300"/>
			        </p>
                    <p>
				        <label>营业经理：</label>
				        <input name="YingYeJingLi" class="required" type="text"  value="<%=obj.YingYeJingLi %>" alt="请输入营业经理" readonly/>
			        </p>
                    <div class="divider"></div>
			        <p>
				        <label>型    号：</label>
                        <%=GetMacType("select", "XingHao", obj.XingHao)%>
			        </p>
                    <p>
				        <label>机    号：</label>
				        <input name="JiHao" class="required" type="text" size="" alt=""  value="<%=obj.JiHao %>" readonly/>
			        </p>
                    <div class="divider"></div>
			        <p>
				        <label>单    价：</label>
				        <input id="FTradeReceivablesView_Price" name="Price" class="required inputFloat" type="text" value="<%=obj.Price %>" size="" alt="" readonly/>
                        <span class="unit">元</span>
			        </p>
                    <p>
				        <label>GPS费 用：</label>
				        <input id="FTradeReceivablesView_GPSFeiYong" name="GPSFeiYong" class="required inputFloat" type="text" value="<%=obj.GPSFeiYong %>" size="" alt="" readonly/>
                        <span class="unit">元</span>
			        </p>
                    <p>
				        <label>月促销折让金额：</label>
                        <input id="FTradeReceivablesView_YueCuXiaoJinE" name="YueCuXiaoJinE" class="required inputFloat" type="text" value="<%=obj.YueCuXiaoJinE %>" size="" alt="" readonly/>
                        <span class="unit">元</span>
			        </p>
                    <p>
				        <label>GPS 号：</label>
				        <input name="GPSNum" class="" type="text" value="<%=obj.GPSNum %>" size="" alt="" readonly/>
			        </p>
                    <p>
				        <label>利息收入：</label>
				        <input  name="InterestIncome" class="required inputFloat" type="text" value="<%=obj.InterestIncome %>" size="" alt=""/>
                        <span class="unit">元</span>
			        </p>
                    <script type="text/javascript">
                        $(document).ready(function () {
                            $("#FTradeReceivablesView_Price,#FTradeReceivablesView_GPSFeiYong,#FTradeReceivablesView_YueCuXiaoJinE").change(function () {
                                if ($(this).val() == "")
                                    $(this).val(0);
                                var Price = parseFloat($("#FTradeReceivablesView_Price").val());
                                var GPSFeiYong = parseFloat($("#FTradeReceivablesView_GPSFeiYong").val());
                                var YueCuXiaoJinE = parseFloat($("#FTradeReceivablesView_YueCuXiaoJinE").val());

                                $("#FTradeReceivablesView_HeTongJinE").val(Price + GPSFeiYong + YueCuXiaoJinE);

                            })
                        })
                    </script>
                    <div class="divider"></div>
			        <p>
				        <label>合同金额：</label>
				        <input id="FTradeReceivablesView_HeTongJinE" name="HeTongJinE" class="required inputFloat" type="text"  readonly value="<%=obj.HeTongJinE %>"  size="" alt=""/>
                        <span class="unit">元</span>
			        </p>
                     <p>
				        <label>返还利息额：</label>
				        <input  name="FanHuanLiXi" class="inputFloat" type="text" value="<%=obj.FanHuanLiXi %>"  readonly size="" alt=""/>
                        <span class="unit">元</span>
			        </p>   
                    <p>
				        <label>到期日：</label>
				        <input name="DaoQiRi" class="" type="text" value="<%=obj.DaoQiRi %>" alt=""  readonly/>
			        </p>
                   <%-- <div style="clear:both;height:40px; background-color:Yellow; ">
                       
                         <p>
				            <label>外币金额：</label>
				            <input name="CurrencyAmount" class="inputFloat" type="text" value="<%=obj.CurrencyAmount %>"readonly alt=""/>
                            &nbsp;<input  name="Currency" class="" type="text" size="3" value="<%=obj.Currency %>"readonly alt=""/>
			            </p>
                        <p>
				            <label>外币汇率：</label>
				            <input name="Rate" class="inputFloat" type="text" value="<%=obj.Rate %>" readonly alt=""/>
                        </p>
                    </div>--%>
              <div style="clear:both;"></div>
				    <label>合同付款条款：</label>
				    <textarea name="FuKuanTiaoKuan" cols="80" rows="4"  readonly><%=obj.FuKuanTiaoKuan%></textarea>
                   
                      <div style="clear:both;"></div>
                     <p>
				        <label>已收款项：</label>
				        <input name="YiShouKuanXiang" class="" type="text" readonly value="<%=obj.YiShouKuanXiang %>"　readonly />
			        </p>
                    <p>
				        <label>未收款项：</label>
				        <input name="WeiShouKuanXiang" class="" type="text" readonly value="<%=obj.WeiShouKuanXiang %>"　readonly />
			        </p>
                    <p>
				        <label>逾期款项：</label>
				        <input name="YuQiKuanXiang" class="" type="text" readonly value="<%=obj.YuQiKuanXiang %>"  alt=""/>
			        </p>
                     <div style="clear:both;margin-bottom: 5px;"></div>

                  <h2 style=" padding:10px 0px 5px 6px; border-bottom:1px solid #B8D0D6;">收款条款信息</h2>
                
                    <div style="clear:both;margin-bottom: 5px;"></div>
                    <label>收款条款：</label>
                    <input name="XiaoShouLeiXing" class="" type="text" value="<%=obj.XiaoShouLeiXing %>" readonly alt=""/>
                    <div style="clear:both;"></div>
                    <div id="FTradeReceivablesView_ShowXXLSPage" style=" border:1px dotted #B8D0D6;  margin:5px 0px; ">
                        <%--显示显示销售对应的配置--%>
                    </div>
                    <script type="text/javascript">
                        $(document).ready(function () {


                            function changeXiaoShouLeiXingView(FTradeSalesId) {
                                //  key = encodeURI(key);
                                var url = "FTradeModel/GetPageFTradeSaleTypeConfigView.aspx?FTradeSalesId=" + FTradeSalesId
                                $("#FTradeReceivablesView_ShowXXLSPage").loadUrl(url);

                            }
                            changeXiaoShouLeiXingView("<%=obj.FTradeSalesId %>");
                        })
                    </script>
                   

                   <div style="clear:both;margin-bottom: 5px;"></div>
                   <h2 style=" padding:10px 0px 5px 6px; border-bottom:1px solid #B8D0D6;">开票信息</h2>
                    
                   <div style="clear:both;   border:1px solid #B8D0D6;border-width:0px 1px 0px 1px!important;">
                        <table class="table" width="100%">
                        <thead>
                            <tr>                  
                                <th width="80">发票类型</th>             
                                <th width="80">发票日期</th>
                                <th width="80">发票代码</th>
                                <th width="100">发票号码</th>
                                <th width="100">金额</th>
                                <th >备注</th>
                            </tr>
                        </thead>
                        <tbody>
                        <asp:repeater id="rpInvoice" runat="server">
                            <ItemTemplate> 
                               <tr>                      
                                    <td><%# Eval("FPType")%></td>              
                                    <td><%# Eval("FPDate")%></td>
                                    <td><%# Eval("FPDaiMa")%></td>
                                    <td><%# Eval("FPHaoMa")%></td>
                                    <td><%# Eval("FPJinE")%></td>
                                    <td><%# Eval("FPRemark")%></td>
                                </tr>
                            </ItemTemplate>
                        </asp:repeater>
                        </tbody>
                        </table>
                   </div>


                   <div style="clear:both;margin-bottom: 5px;"></div>
                    <h2 style=" padding:10px 0px 5px 6px; border-bottom:1px solid #B8D0D6;">终端信息</h2>
                    <p>
				        <label>终端销售状态：</label>
				        <input name="ZDXiaoShouState" class="" type="text" value="<%=obj.ZDXiaoShouState %>" alt="" readonly/>
			        </p>
                    <p>
				        <label>终端用户：</label>
				        <input name="ZDYongHu" class="" type="text" value="<%=obj.ZDYongHu %>" alt="" readonly/>
			        </p>
                    <p>
				        <label>终端销售时间：</label>
				        <input name="ZDXiaoShouShiJian" class="" type="text" value="<%=obj.ZDXiaoShouShiJian %>" readonly alt=""/>
			        </p>
                    <p>
				        <label>终端售价：</label>
				        <input name="ZDShouJia" class="inputFloat" type="text" value="<%=obj.ZDShouJia %>" readonly alt=""/>
			        </p>
		</div>
		<div class="formBar">
			<ul>
				<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
				
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>
